<%@ page import="org.jeecgframework.web.util.StaticValue" %>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<div class="easyui-layout" fit="true">
	<div region="center" style="padding:1px;">
		<t:datagrid name="cbsWxUserBindList" checkbox="true" fitColumns="false" title="微信会员验证" actionUrl="cbsWxUserBindController.do?datagrid" idField="id" fit="true" queryMode="group">
			<t:dgCol title="主键"  field="id"  hidden="true"  queryMode="single"  width="120"/>
			<t:dgCol title="姓名"  field="createName"    queryMode="single"  width="70" query="true"/>
			<t:dgCol title="手机号"  field="phoneNumber"    queryMode="single"  width="100" query="true" />
			<t:dgCol title="申请时间"  field="createDate" formatter="yyyy-MM-dd" queryMode="single"  width="90"/>
			<t:dgCol title="邮箱"  field="email"    queryMode="single"  width="120"/>
			<t:dgCol title="职位"  field="departName"   dictionary="cinemaDepart" queryMode="single"  width="120"/>
			<t:dgCol title="所属影院"  field="cinemaName"  query="true"  queryMode="single"  width="120"/>
			<t:dgCol title="所属院线"  field="chainName"  query="true"  queryMode="single"  width="120"/>
			<t:dgCol title="经营方式" field="marketingType" dictionary="<%=StaticValue.DIC_BUSINESS_WAY%>" queryMode="single" width="120"/>
			
			<t:dgCol title="影院地址（省）"  field="province_territoryName"    queryMode="single"  width="100"/>
			<t:dgCol title="影院地址（市）"  field="city_territoryName"    queryMode="single"  width="100"/>
			<t:dgCol title="影院地址（详细）"  field="address"    queryMode="single"  width="120"/>
			<t:dgCol title="影院联系方式"  field="cinemaPhoneNumber"    queryMode="single"  width="120"/>
			<t:dgCol title="openId"  field="openId"  queryMode="single"  width="120"/>
			
			<t:dgCol title="审批状态"  field="approvalStatus"  replace="未审批_0,通过_1,不通过_2" query="true" queryMode="single"  width="90"/>
			<t:dgCol title="备注"  field="remark"    queryMode="single"  width="120"/>
			<t:dgCol title="创建人登录名称"  field="createBy"  hidden="true"  queryMode="single"  width="120"/>
			<t:dgCol title="更新人名称"  field="updateName"  hidden="true"  queryMode="single"  width="120"/>
			<t:dgCol title="更新人登录名称"  field="updateBy"  hidden="true"  queryMode="single"  width="120"/>
			<t:dgCol title="更新日期"  field="updateDate" formatter="yyyy-MM-dd" hidden="true"  queryMode="single"  width="120"/>
			<t:dgCol title="操作" field="opt" width="100"/>
			<t:dgFunOpt exp="approvalStatus#eq#0" title="认证" funname="openAuthPath(id)"></t:dgFunOpt>
			<t:dgFunOpt title="填写备注" funname="editRemark(id)"></t:dgFunOpt>

<%--    <t:dgConfOpt exp="approvalStatus#eq#0" title="认证" url="cbsWxUserBindController.do?doUpdateStataus&id={id}&type=1" message = ""></t:dgConfOpt> --%>
<%--    <t:dgDelOpt title="删除" url="cbsWxUserBindController.do?doDel&id={id}" /> --%>
<%--    <t:dgToolBar title="录入" icon="icon-add" url="cbsWxUserBindController.do?goAdd" funname="add"></t:dgToolBar> --%>
<%--    <t:dgToolBar title="编辑" icon="icon-edit" url="cbsWxUserBindController.do?goUpdate" funname="update"></t:dgToolBar> --%>
<%--    <t:dgToolBar title="批量删除"  icon="icon-remove" url="cbsWxUserBindController.do?doBatchDel" funname="deleteALLSelect"></t:dgToolBar> --%>
<%--    <t:dgToolBar title="查看" icon="icon-search" url="cbsWxUserBindController.do?goUpdate" funname="detail"></t:dgToolBar> --%>
<%--    <t:dgToolBar title="导入" icon="icon-put" funname="ImportXls"></t:dgToolBar> --%>
<%--    <t:dgToolBar title="导出" icon="icon-putout" funname="ExportXls"></t:dgToolBar> --%>
<%--    <t:dgToolBar title="模板下载" icon="icon-putout" funname="ExportXlsByT"></t:dgToolBar> --%>
		</t:datagrid>
	</div>
</div>
<script src = "webpage/com/buss/controller.core/cbsWxUserBindList.js"></script>
<script type="text/javascript">
$(document).ready(function(){
	//给时间控件加上样式
	$("#cbsWxUserBindListtb").find("input[name='createDate']").attr("class","Wdate").attr("style","height:20px;width:90px;").click(function(){WdatePicker({dateFmt:'yyyy-MM-dd'});});
	$("#cbsWxUserBindListtb").find("input[name='updateDate']").attr("class","Wdate").attr("style","height:20px;width:90px;").click(function(){WdatePicker({dateFmt:'yyyy-MM-dd'});});
});
function openAuthPath(id){
	var url = "cbsWxUserBindController.do?authWxUser&id="+id;
	add("认证微信用户",url,"cbsWxUserBindList",900,320);
}
function editRemark(id){
	add("编辑备注","cbsWxUserBindController.do?editRemark&id=" + id,"cbsWxUserBindList", 500, 200);
}
//导入
function ImportXls() {
	openuploadwin('Excel导入', 'cbsWxUserBindController.do?upload', "cbsWxUserBindList");
}

//导出
function ExportXls() {
	JeecgExcelExport("cbsWxUserBindController.do?exportXls","cbsWxUserBindList");
}

//模板下载
function ExportXlsByT() {
	JeecgExcelExport("cbsWxUserBindController.do?exportXlsByT","cbsWxUserBindList");
}
 </script>